package com.just.just_bankreputationsystem.Service;

import com.just.just_bankreputationsystem.Model.Bank;
import com.just.just_bankreputationsystem.Model.Page;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BankService {

    /**
     *调用dao层从数据库中选取所有的数据
     */
    @Transactional(readOnly = true)
    public List<Bank> selectAllbank();

    int bankAdd(Bank bank);

    void delBankById(int id);

    @Transactional(readOnly = true)
    Bank selectBankById(int id);

    int updateBank(Bank bank);

    Page getPage();
}
